import re
ss = '///1234512345///'
s = re.search(r'[^/]+', ss)
print(s.group())
